# Project: objectmd
# (c) 2005, Yudi Rosandi

M_OMD_CXX=c++

include config.make

all: optimize

optimize:
	rm -f lib/*
	$(MAKE) CXX="$(M_OMD_CXX) -O3 -Wall -Wno-strict-aliasing $(OMDFLAG)" -C src/omd
	$(MAKE) CXX="$(M_OMD_CXX) -O3 -Wall -Wno-strict-aliasing $(OMDFLAG)" -C src/gadget

app: src/app/*.cpp
	$(MAKE) CXX="$(M_OMD_CXX) $(OMDFLAG)" -C src/app

install: optimize
	./install.sh \
	--with-mpi=$(MPI_HOME) \
	--prefix=$(INSTALL_DIR) \
	--conf=$(CONF_FILE)

clean:
	$(MAKE) clean -C src/omd
